#!/usr/bin/python
# -*- coding: UTF-8 -*-
import gzip
import os

try:
    files = os.listdir('C:/Users/Administrator/Desktop/0123/')
    for f in files:
        print(f)
    with gzip.open('C:/Users/Administrator/Desktop/0123/a.gz', 'rb') as f:
        for line in f:
            b = line.decode('utf-8')
            print(b, "")
except Exception as err:
    print(err)
